import React from 'react';
import { Button } from 'antd';


const Action = ({ actionList, actionSize }) => {
  const actionBody = actionList.map(item => {
    return (
      <span key={item.key} style={{ marginRight: 15 }}>
        <Button type={item.type} icon={item.icon} size={actionSize} onClick={item.click}>{item.title}</Button>
      </span>
    );
  });
  return (
    <div>
      {actionBody}
      <p></p>
    </div>
  );
};
export default Action;
